<div class="page-content" >
				<div class="panel panel-default">
								<div class="panel-heading"> <strong>课程管理</strong> </div>
								<div class="panel-body">
												<div id="toolbar" style="width: 100%;">
																<form id="filter" method="get"  class="form-horizontal">
																				<div class="form-group">
																								<div class="col-sm-4" ><select onchange="select_subjectid(this)" style="width:40%; display:inline-block" name="subject_class_id" class="form-control">
																																<option value="">按班级查询</option>
																																<volist name="subject_class" id="vo"> <option   
																																				<if condition="$subject_class_id eq $vo['subject_class']">selected="selected"</if>
																																				 value="<{$vo.id}>"><{$vo.name}>
																																				</option>
																																</volist>
																												</select> 	
																												<select style="width:50%; display:inline-block" name="subjectid" class="form-control">
																																<option value="">课程</option>
																																<volist name="subjectData" id="vo"> <option   subject_class="<{$vo.subject_class}>" 
																																				<if condition="$subjectid eq $vo['subjectid']">selected="selected"</if>
																																				 value="<{$vo.subjectid}>"><{$vo.subject}>
																																				</option>
																																</volist>
																												</select>
																												
																												
																								</div>
																								<div class="col-sm-3" >
																								  <input type="text" class="form-control" name="kw" value="<{$kw}>"  placeholder="姓名、手机、地址" />
																								</div>
																								<div class="col-sm-2" >
																								   <select name="status"  class="form-control">
																											<option value="">请选择</option>
																											<option value="1"  <if condition="$status eq 1">selected="selected"</if>>已经发快递</option>
																											<option value="2"  <if condition="$status eq 2">selected="selected"</if>>待发快递</option>
																											</select>
																								</div>
																								<div class="col-sm-2" >
																												<input type="submit" class="btn btn-primary btn-sm" value="筛选">
																								</div>
																				</div>
																				 
																</form>
												</div>
												<div class="bootstrap-table">
																<div class="fixed-table-container" style="padding-bottom: 0px;">
																				<div class="fixed-table-body">
																								<table id="data-table" class="table">
																												<thead>
																																<tr>
																																				<th style="" data-field="id"><div class="th-inner sortable both desc">用户ID</div>
																																								<div class="fht-cell"></div></th>
																																				<th style="" data-field="name"><div class="th-inner ">课程名</div>
																																								<div class="fht-cell"></div></th>
																																		 
																																				<th style="" data-field="created_at"><div class="th-inner ">手机号</div>
																																								<div class="fht-cell"></div></th>
																																								<th style="" data-field="created_at"><div class="th-inner ">姓名</div>
																																								<div class="fht-cell"></div></th>	
																																				<!--		<th style="" data-field="created_at"><div class="th-inner ">添加时间</div><div class="fht-cell"></div></th>-->
																																				<th style="" data-field="created_at"><div class="th-inner ">地址</div>
																																					<th style="" data-field="created_at"><div class="th-inner ">开课时间</div><div class="fht-cell"></div></th>
																																								<div class="fht-cell"></div></th>
																																				<th style="" data-field="id"><div class="th-inner ">操作</div>
																																								<div class="fht-cell"></div></th>
																																</tr>
																												</thead>
																												<tbody>
																																<volist name="data" id="vo">
																																				<tr data-index="0" class="parentSubject">
																																								<td style=""><{$vo.user.user_id}></td>
																																								<td style="width:300px"><{$vo.subject.subject}></td>
																																								<td style=""><{$vo.user.phone}></td>
																																								<td style=""><{$vo.user.real_name}></td>
																																								<td style=""><{$vo.user.address}></td>
																																							 <td style=""><{$vo.pay_time}></td>  
																																								<!--	<td style=""><{$vo['status']==1?"启用":"禁用"}></td>-->
																																								  
																																								<td style="">
																																								<if condition="$vo['logistics']">
																																							 	<a href="/BoxAdmin/Order/logistics/order_sn/<{$vo.order_sn}>/goods_ids/<{$vo.subject.subjectid}>" data-type="modal" class="btn btn-danger btn-xs">查看物流信息</a>&nbsp;&nbsp; 
																																								<else/>
																																									<a href="/BoxAdmin/Order/logistics/order_sn/<{$vo.order_sn}>/goods_ids/<{$vo.subject.subjectid}>" data-type="modal" class="btn btn-primary btn-xs">填写物流信息</a>&nbsp;&nbsp; 
																																								</if>
																																									</td>
																																				</tr>
																																				 
																																</volist>
																												</tbody>
																								</table>
																				</div>
																				<include file="./Apps/BoxAdmin/View/Ace/Public/pager.html" /> </div>
												</div>
												<div class="clearfix"></div>
								</div>
				</div>
</div>
<script>
function select_subjectid(_this){
	 var v=$(_this).val();
		var obj=$('[name="subjectid"]');
		if(v==""){
				$(obj).find("option").show();
		}else{
		$(obj).find("option").hide();
		$(obj).find("[subject_class='"+v+"']").show();
		$(obj).val($(obj).find("[subject_class='"+v+"']").eq(0).val());
		}
}
</script>
<style>
		 
		.childSubject td{ background:#EEE}
		</style>